import org.cvbpl.Image;
import org.cvbpl.Matrix;

public class Main {
	public static void main(String[] args) throws Exception {
		Image input = Image.load("test.png");
		
		Matrix gauss3 = new Matrix(3, 3);
		gauss3.set(0, 0, 1./15);
		gauss3.set(0, 1, 2./15);
		gauss3.set(0, 2, 1./15);
		gauss3.set(1, 0, 2./15);
		gauss3.set(1, 1, 3./15);
		gauss3.set(1, 2, 2./15);
		gauss3.set(2, 0, 1./15);
		gauss3.set(2, 1, 2./15);
		gauss3.set(2, 2, 1./15);
		
		Image output = input.convolve(gauss3);
		output.save("output.png", "png");
		
	}
}
